package org.example.CompositeEntityPattern;

/**
 * 依赖对象2
 */
public class DependentObject2 {
   
   private String data;
 
   public void setData(String data){
      this.data = data; 
   } 
 
   public String getData(){
      return data;
   }
}